package cn.com.cifi.mars.web.action.report;

import cn.com.cifi.mars.common.constants.VersionConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;

/**
 * 测试人员报表API
 * @author: JingYuanXiang
 * @date: 2020/12/14 17:28
 */
@Api(tags = "测试人员报表API")
@RequestMapping("/${spring.data.rest.base-path}/{apiVersion}/testReport")
public interface ITestDataReportController {

    @ApiOperation(value = "销售数据导出", notes = "销售数据导出")
    @GetMapping(value = "testSalesDataExport")
    void testSalesDataExport(
            @ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion,
            HttpServletResponse response,
            @ApiParam(value = "项目id", required = true) @RequestParam String projectId);


    @ApiOperation(value = "签约版本金额数据导出", notes = "签约版本金额数据导出")
    @GetMapping(value = "signVersionMoneyDataExport")
    void signVersionMoneyDataExport(
            @ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion,
            HttpServletResponse response,
            @ApiParam(value = "签约版本id", required = true) @RequestParam String signVersionId);


}
